package com.duobaoyu.dby.supply.biz.client.resource.bean.dto;

import com.duobaoyu.dby.common.core.validator.groups.Add;
import com.duobaoyu.dby.common.core.validator.groups.Edit;
import com.duobaoyu.dby.common.mybatis.support.Query;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author liyang
 * @version 1.0.0
 * @ClassName StateDTO
 * @createTime 16:24:00 2023/10/08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "StateInfoDTO对象", description = "状态定义表入参对象")
public class StateDTO extends Query implements Serializable {


    private static final long serialVersionUID = -5682597400860567101L;
    /**
     * 状态信息 ID
     */
    @NotNull(message = "状态信息ID不能为空",groups = {Edit.class})
    private Long id;
    /**
     * 状态编号
     */
    @NotBlank(message = "状态编号不能为空",groups = {Add.class,Edit.class})
    private String stateCode;
    /**
     * 状态名称
     */
    @NotBlank(message = "状态名称不能为空",groups = {Add.class,Edit.class})
    private String stateName;
    /**
     * 是否存在映射
     */
    @NotNull(message = "是否存在映射不能为空",groups = {Add.class,Edit.class})
    private Boolean existMapping;
    /**
     * 枚举类型
     */
    @NotBlank(message = "枚举类型不能为空",groups = {Add.class,Edit.class})
    private String classType;
}
